import request from '@/util/request';

export const getTopic = function(param){
	var url = '/share/getTopic';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const schoolJoin = function(param){
	var url = '/share/schoolJoin';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const oldJoin = function(param){
	var url = '/share/oldJoin';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const getTools = function(param){
	var url = '/share/getTools';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const toolBorrow = function(param){
	var url = '/share/toolBorrow';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const getKitchenTools = function(param){
	var url = '/share/getKitchenTools';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const kitchenToolBorrow = function(param){
	var url = '/share/kitchenToolBorrow';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const getMySchool = function(param){
	var url = '/share/getMySchool';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const getMyOlder = function(param){
	var url = '/share/getMyOlder';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const getMyKitchen = function(param){
	var url = '/share/getMyKitchen';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const getMyTools = function(param){
	var url = '/share/getMyTools';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const release = function(param){
	var url = '/share/release';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const getLattice = function(param){
	var url = '/share/getLattice';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const getMyRelease = function(param){
	var url = '/share/getMyRelease';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const likeDynamic = function(param){
	var url = '/share/likeDynamic';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const getDynamicDetail = function(param){
	var url = '/share/getDynamicDetail';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const getDynamicComment = function(param){
	var url = '/share/getDynamicComment';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const commentDynamic = function(param){
	var url = '/share/commentDynamic';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const getSchoolDetail = function(param){
	var url = '/share/getSchoolDetail';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const getOlderDetail = function(param){
	var url = '/share/getOlderDetail';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const getKitchenDetail = function(param){
	var url = '/share/getKitchenDetail';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const paySchool = function(param){
	var url = '/share/paySchool';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const payOlder = function(param){
	var url = '/share/payOlder';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const getServiceItems = function(param){
	var url = '/share/getServiceItems';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const getShareLatticeGoods = function(param){
	var url = '/share/getShareLatticeGoods';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const getLatticeDetail = function(param){
	var url = '/share/getLatticeDetail';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const createOrder = function(param){
	var url = '/share/createOrder';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const getMyComment = function(param){
	var url = '/share/getMyComment';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const getMyLike = function(param){
	var url = '/share/getMyLike';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const delLattice = function(param){
	var url = '/share/delLattice';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const assignLattice = function(param){
	var url = '/share/assignLattice';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const getLatticeOrder = function(param){
	var url = '/share/getLatticeOrder';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const getLatticeOrderDetail = function(param){
	var url = '/share/getLatticeOrderDetail';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const delTool = function(param){
	var url = '/share/delTool';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const delSchool = function(param){
	var url = '/share/delSchool';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const delOld = function(param){
	var url = '/share/delOld';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const delKitchen = function(param){
	var url = '/share/delKitchen';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}